home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / bisonpcb / gram.c < prev    next >
C/C++ Source or Header  |  1987-02-12  |  2KB  |  60 lines

  1. /* Allocate input grammar variables for bison,
  2.    Copyright (C) 1984, 1986 Bob Corbett and Free Software Foundation, Inc.
  3.   
  4. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  5. WARRANTY.  No author or distributor accepts responsibility to anyone
  6. for the consequences of using it or for whether it serves any
  7. particular purpose or works at all, unless he says so in writing.
  8. Refer to the BISON General Public License for full details.
  9.   
  10. Everyone is granted permission to copy, modify and redistribute BISON,
  11. but only under the conditions described in the BISON General Public
  12. License.  A copy of this license is supposed to have been given to you
  13. along with BISON so you can know your rights and responsibilities.  It
  14. should be in a file named COPYING.  Among other things, the copyright
  15. notice and this notice must be preserved on all copies.
  16.   
  17.  In other words, you are welcome to use, share and improve this program.
  18.  You are forbidden to forbid anyone else to use, share and improve
  19.  what you give them.   Help stamp out software-hoarding!  */
  20.  
  21. /* comments for these variables are in gram.h  */
  22.  
  23. /*
  24.  * Port to PC by Whit Gregg
  25.  *               Nourse, Gregg & Browne, Inc.
  26.  *         1 Horizon Road
  27.  *         Fort Lee, NJ  07024
  28.  */
  29.  
  30.  
  31. #include "func.h"
  32.  
  33.     int nitems;
  34. int nrules;
  35. int nsyms;
  36. int ntokens;
  37. int nvars;
  38.  
  39. short *ritem;
  40. short *rlhs;
  41. short *rrhs;
  42. short *rprec;
  43. short *sprec;
  44. short *rassoc;
  45. short *sassoc;
  46. short *token_translations;
  47. short *rline;
  48.  
  49. int start_symbol;
  50.  
  51. int translations;
  52.  
  53. int max_user_token_number;
  54.  
  55. int semantic_parser;
  56.  
  57. int pure_parser;
  58.  
  59. int error_token_number;
  60.